package com.java80.springmall.cloud.order.consumer.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.java80.springmall.cloud.order.consumer.service.OrderService;

@RestController
public class OrderConsumerController {
	@Autowired
	private OrderService orderSvc;
	
	@RequestMapping("/order/createOrder")
	public String createOrder(Long productId,Integer nums,Long userId){
		//
		orderSvc.createOrder(productId, nums, userId);
		return null;
		
	}
}
